﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ANMCMaster.Master" AutoEventWireup="true" CodeBehind="SiteStructure.aspx.cs" Inherits="AllNations.WebAppAdmin.SiteStructure" %>
<%@ Register src="~/Controls/UserPageLeftNav.ascx" TagName="UserPageLeftNav" TagPrefix="ANMC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
    <style type="text/css">
        .RadTreeView_Default, .RadTreeView_Default a.rtIn, .RadTreeView_Default .rtEdit .rtIn input
        {
            font-size: 1.2em !important;
        }
        .RadTreeView .rtLI
        {
            font-size: 0.85em !important;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ANBodyContent" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function treeSiteStructureClientContextMenuItemClicked(sender, args) {
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="treeSiteStructure">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelSetting" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btSaveNode">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="treeSiteStructure" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btAdd">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelSetting" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btRemove">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelSetting" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btRemoveAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelSetting" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <div class="leftnav">
        <div style="margin: 11px 0px 25px 0px;"><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/sectionTitleMembership.png" /></div>
        <ANMC:UserPageLeftNav ID="UserPageLeftNav1" runat="server" Selected="Sitemap" />
    </div>
    <div class="rightcontentarea">
        <div id="contentBoxHolder">
            <div class="ContentTitleBar">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/titleSitemap.png" />
            </div>
            <article class="node static-page content">
                <div class="columns">
                    <div class="column grid_2 first">
                        <h2>Site treemap</h2>
                        <telerik:RadTreeView ID="treeSiteStructure" runat="server" 
                            DataFieldID="node_id" 
                            DataFieldParentID="parent_node_id"
                            DataTextField="node_title"
                            DataValueField="node_id"
                            OnClientContextMenuItemClicked="treeSiteStructureClientContextMenuItemClicked"
                            AllowNodeEditing="true">
                        </telerik:RadTreeView>
                    </div>
                    <div class="column grid_6 last">
                        <h2>Page settings</h2>
                        <asp:Panel ID="panelSetting" runat="server">
                            <div style="padding: 10px">
                                <table cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td style="padding: 4px;">Page title:</td>
                                        <td style="padding: 4px;"><asp:TextBox ID="txtNodeTitle" runat="server" Width="200px" /></td>
                                    </tr>
                                    <tr style="vertical-align: top">
                                        <td style="padding: 4px; padding-top: 8px">Page url:</td>
                                        <td style="padding: 4px;"><asp:TextBox ID="txtNodeUrl" runat="server" Width="200px" /></td>
                                    </tr>
                                    <tr style="vertical-align: top">
                                        <td>&nbsp;</td>
                                        <td style="padding: 4px;">
                                            <asp:CheckBox ID="cbUseGenericPageInd" runat="server" Text="Use generic page" />
                                            <asp:DropDownList ID="ddDynamicPageTypes" runat="server" />
                                            Custom URL Code: <asp:TextBox ID="txtNodeCd" runat="server" MaxLength="20" Width="100px" /><br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 4px;">Page description:</td>
                                        <td style="padding: 4px;"><asp:TextBox ID="txtNodeDescription" runat="server" TextMode="MultiLine" Rows="3" Width="200px" /></td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 4px;">Read permission:</td>
                                        <td style="padding: 4px;"><asp:DropDownList ID="ddAvailableRoles" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 4px;">Update permission:</td>
                                        <td style="padding: 4px;">
                                            <table cellpadding="3" cellspacing="0" border="0">
                                                <tr style="vertical-align: middle">
                                                    <td>
                                                        <asp:Panel ID="panelAvailableUsers" runat="server" GroupingText="Available users">
                                                            <asp:ListBox ID="lbAvailableUsers" runat="server" Rows="10" style="min-width: 120px" SelectionMode="Multiple" />
                                                        </asp:Panel>
                                                    </td>
                                                    <td style="padding: 4px; text-align: center">
                                                        <asp:Button ID="btAdd" runat="server" Text="Add &gt;" /><br />
                                                        <asp:Button ID="btRemove" runat="server" Text="&lt; Remove" /><br />
                                                        <asp:Button ID="btRemoveAll" runat="server" Text="&lt;&lt; Remove all" /><br />
                                                    </td>
                                                    <td>
                                                        <asp:Panel ID="panelAdminUsers" runat="server" GroupingText="Selected users">
                                                            <asp:ListBox ID="lbAdminUsers" runat="server" Rows="10" style="min-width: 120px" SelectionMode="Multiple" />
                                                        </asp:Panel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td style="padding: 4px;"><asp:Button ID="btSaveNode" runat="server" Text="Save settings" /></td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="endcolumns"></div>
                </div>
            </article>
        </div>
        <div style="clear: both;"></div>
    </div>
    <div style="clear: both;"></div>
</asp:Content>
